<html>
<head>
  <link rel="stylesheet" type="text/css" href="css/tips.css">
</head>
<body>
<p>The Extract Method refactoring creates method for a fragment of your code.</p>
<p>For example, you could select a block of code and press <span class="shortcut">&shortcut:ExtractMethod;</span> (<span class="control">Refactor | Extract -> Method</span>): </p>
<p class="image"><img src="images/extract_method_1.png"></p>
<p>This would result in the following:</p>
<p class="image"><img src="images/extract_method_2.png"></p>
</body>
</html>